package com.woniu.command.proscheduingcommand;

import com.woniu.command.Command;
import com.woniu.command.handle.ProSchedulingCommandHandle;
import com.woniu.outlet.po.ProSchedulingPo;
import com.woniu.uitl.ApplicationContextHolder;

public class AddProScheduingCommand implements Command<ProSchedulingPo,String> {

    private ProSchedulingCommandHandle handle;

    public AddProScheduingCommand() {
        this.handle = ApplicationContextHolder.getApplicationContext().getBean(ProSchedulingCommandHandle.class);
    }

    @Override
    public String excute(ProSchedulingPo po) {
        String msg = handle.addProSche(po);
        return msg;
    }
}
